import { Button, Checkbox, Form, Input } from "antd"
import { Public } from "../../financial"
import './index.less'
const PowerDetail = () => {
    function onFinish(values: any): void {
        throw new Error("Function not implemented.")
    }

    function onFinishFailed(errorInfo: any): void {
        throw new Error("Function not implemented.")
    }

    return (
        <div>
            <Public header={"权限设置"}></Public>
            <div style={{ marginRight:40, width: 400, height: 500,float:'left' }}>
                <Form
                    name="basic"
                    labelCol={{ span: 8 }}
                    wrapperCol={{ span: 16 }}
                    style={{ maxWidth: 600 }}
                    initialValues={{ remember: true }}
                    onFinish={onFinish}
                    onFinishFailed={onFinishFailed}
                    autoComplete="off"
                >
                    <Form.Item
                        label="用户名"
                        name="name"
                        rules={[{ required: true, message: 'Please input your username!' }]}
                    >
                        <Input />
                    </Form.Item>

                    <Form.Item
                        label="用户密码"
                        name="password"
                        rules={[{ required: true, message: 'Please input your username!' }]}
                    >
                        <Input />
                    </Form.Item>

                    <Form.Item
                        label="手机号"
                        name="tel"
                        rules={[{ required: true, message: 'Please input your username!' }]}
                    >
                        <Input />
                    </Form.Item>

                    <Form.Item
                        label="类别"
                        name="type"
                        rules={[{ required: true, message: 'Please input your password!' }]}
                    >
                        <Input />
                    </Form.Item>

                    <Form.Item
                        name="use"
                        valuePropName="checked"
                        wrapperCol={{ offset: 8, span: 16 }}
                    >
                        <Checkbox>是否启用</Checkbox>
                    </Form.Item>

                    <Form.Item wrapperCol={{ offset: 8, span: 16 }}>
                        <Button type="primary" htmlType="submit">
                            提交
                        </Button>
                    </Form.Item>
                </Form>
            </div>
            <div className="powerTablediv">
                <table className="powerTable">
                    <thead>
                        <tr style={{ border: '1px solid' }}>
                            <th>板块</th>
                            <th>页面</th>
                            <th>具体权限</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td className="tdpower" rowSpan={7}>凭证管理</td>
                            <td className="tdpower">查看凭证</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">复制凭证</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">审核凭证</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">反审核凭证</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">查看凭证-已结账</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">冲红凭证</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">期末结转</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower" rowSpan={7}>资金管理</td>
                            <td className="tdpower">现金日记账</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">银行日记账</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">内部转账</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">核对总账</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">资金报表</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">付款记录</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">收款记录</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower" rowSpan={7}>资金管理</td>
                            <td className="tdpower">现金日记账</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">银行日记账</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">内部转账</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">核对总账</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">资金报表</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">付款记录</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                        <tr>
                            <td className="tdpower">收款记录</td>
                            <td className="tdpower1"><span><input type="checkbox" />保存并新增</span><input type="checkbox" />保存</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    )
}
export default PowerDetail